Skip to content

update axios dependency and update tests#283

Merged
Samk13 merged 9 commits intoinveniosoftware:maint-2.xfrom
Samk13:fix-axios-version
May 5, 2025
Merged

update axios dependency and update tests#283
Samk13 merged 9 commits intoinveniosoftware:maint-2.xfrom
Samk13:fix-axios-version

Conversation

@Samk13
Copy link
Member

@Samk13 Samk13 commented May 2, 2025

related to inveniosoftware/invenio-search-ui#215

  • Update axios deps 1.8.2

  • Add TextEncoder, TextDecoder, and ReadableStream as globals to address Implement TextEncoder and TextDecoder jsdom/jsdom#2524. Update axios and axios-mock-adapter versions in package.json, pin cheerio due to an issue with enzyme, and modify Jest test command to transform node_modules/axios. Fix tests to accommodate these changes.

Question:

should we merge this, or bump the upper pin here: https://github.com/inveniosoftware/invenio-rdm-records/blob/maint-10.x/invenio_rdm_records/webpack.py#L40C38-L40C44

Sam Arbid added 2 commits May 2, 2025 12:09
* Add TextEncoder, TextDecoder, ReadableStream as globals
  due to jsdom/jsdom#2524
* Pin `cheerio` due to enzymejs/enzyme#2558
* Add option `--transformIgnorePatterns /\"node_modules/(?!axios)/\"`
  to instruct jest to transform  "node_modules/axios"
@Samk13 Samk13 force-pushed the fix-axios-version branch 3 times, most recently from 7349351 to 04d836b Compare May 2, 2025 10:35
@Samk13 Samk13 requested a review from ntarocco May 2, 2025 11:10
@Samk13 Samk13 requested a review from max-moser May 2, 2025 11:26
@Samk13 Samk13 force-pushed the fix-axios-version branch from 9d6065f to e103045 Compare May 4, 2025 14:19
Sam Arbid and others added 3 commits May 4, 2025 17:36
* ci: include maint branche & upgrade Ubuntu version
* chore: update CI to use Ubuntu 24.04 for testing
@Samk13 Samk13 force-pushed the fix-axios-version branch from e103045 to 1b79554 Compare May 4, 2025 15:39
@Samk13 Samk13 force-pushed the fix-axios-version branch from 4e7c612 to a84aa2f Compare May 4, 2025 16:49
Samk13 added 2 commits May 5, 2025 10:14
* remove end of life node versions from the matrix
* update branch pattern
* fix the issue when running npm run lint:

Oops! Something went wrong! :(

ESLint: 6.8.0.

ESLint couldn't find the config "react-app" to extend from. Please check that the name of the config is correct.
@Samk13 Samk13 merged commit 0c5d21c into inveniosoftware:maint-2.x May 5, 2025
1 check passed
@Samk13 Samk13 deleted the fix-axios-version branch May 5, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants